#!/usr/bin/env python3.9
# Released under the MIT License. See LICENSE for details.
#
"""A collection of commands for use with this project.

All top level functions here can be run by passing them as the first
argument on the command line. (or pass no arguments to get a list of them).
"""

# Note: we import as little as possible here at the module level to
# keep launch times fast; most imports should happen within individual command
# functions.

from __future__ import annotations

from typing import TYPE_CHECKING

# Pull in commands we want to expose. Its more efficient to define them in
# modules rather than inline here because we'll be able to load them via pyc.
# pylint: disable=unused-import
from efrotools.pcommand import (
    PROJROOT, pcommand_main, formatcode, formatscripts, formatmakefile,
    cpplint, pylint, pylint_files, mypy, runmypy, dmypy, tool_config_install,
    sync, sync_all, scriptfiles, pycharm, clioncode, androidstudiocode,
    makefile_target_list, spelling, spelling_all, pytest, echo,
    compile_python_files, pyver, try_repeat)
from batools.pcommand import (
    stage_server_file, py_examine, resize_image, check_clean_safety,
    clean_orphaned_assets, archive_old_builds, lazy_increment_build,
    get_master_asset_src_dir, androidaddr, push_ipa, printcolors,
    gen_fulltest_buildfile_android, gen_fulltest_buildfile_windows,
    gen_fulltest_buildfile_apple, gen_fulltest_buildfile_linux,
    python_build_apple, python_build_apple_debug, python_build_android,
    python_build_android_debug, python_android_patch, python_apple_patch,
    python_gather, python_winprune, capitalize, upper, efrocache_update,
    efrocache_get, get_modern_make, warm_start_asset_build, gendocs,
    update_docs_md, list_pip_reqs, install_pip_reqs, checkenv,
    ensure_prefab_platform, prefab_run_var, make_prefab, lazybuild,
    android_archive_unstripped_libs, efro_gradle, stage_assets,
    update_assets_makefile, update_project, update_cmake_prefab_lib,
    cmake_prep_dir, gen_binding_code, gen_flat_data_code, wsl_path_to_win,
    wsl_build_check_win_drive, win_ci_binary_build, genchangelog,
    android_sdk_utils, update_resources_makefile, update_meta_makefile,
    xcode_build_path, gen_python_enums_module, gen_python_init_module,
    update_dummy_module, win_ci_install_prereqs)
# pylint: enable=unused-import

if TYPE_CHECKING:
    pass

if __name__ == '__main__':
    pcommand_main(globals())
